var currentWin = Ti.UI.currentWindow;

var dogsel = Ti.UI.currentWindow.CatName;
//Ti.API.info(dogsel);
var dbversion = 1.3;
var db = Ti.Database.install('../paws.sqlite','cats' + dbversion);
var rows = db.execute('SELECT description,largephoto,status from cats where STATUS=1 AND name="' + dogsel + '"');







/*var desc_data = [
{height:150,width:300,top:210,backgroundColor:'#ddd',value:'' + rows.fieldByName('description') + ''}
];
*/

var imagepet = Ti.UI.createImageView({
	image:'' + rows.fieldByName('largephoto') + '',
	top:'10',
	hidden:false
	
});

var textarea = Ti.UI.createTextArea({
	editable:false,
	font:{fontSize:16},
	backgroundColor:'#ddd',
	value:'' + rows.fieldByName('description') + ''
});

var scrollview = Titanium.UI.createScrollableView({
	views:[imagepet,textarea],
	showPagingControl:true,
	pagingControlHeight:30
	
});
currentWin.add(scrollview);
/*
currentWin.add(imagepet);
currentWin.add(textarea);
*/